package com.example.controller.permissions;

import com.example.pojo.permissions.Juris;
import com.example.service.permissions.JurisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RequestMapping("/jur")
@RestController
/**
 * 审核列表的添加数据
 * @author 小苏
 * @ClassName:TeacherController
 * @description: TODO
 * @data 2022/12/7 23:08
 * @version: 1.0
 **/
public class JurisController {
    @Autowired
    private JurisService jurisService;
    @ResponseBody
    @RequestMapping("/getJur")
    private List<Juris> getJ(){
        return jurisService.getJuris();
    }

    /**
     * 获取前端传进来的数据
     * @param data
     * @param mess
     */
    @ResponseBody
    @RequestMapping("/getInst")
    private void getAll(String data,String mess){
        System.out.println(data);
        System.out.println(mess);
        jurisService.getInter(data,mess);
    }
    @ResponseBody
    @RequestMapping("/getInterChar")
    private void getAs(String data,String mass){
        System.out.println(data);
        System.out.println(mass);
        jurisService.getCao(data,mass);
    }
}
